<?php
$this->breadcrumbs = array(
	'Upload',
);

$this->menu = array(
	array('label'=>'List Upload', 'url'=>array('index')),
	array('label'=>'Manage Upload', 'url'=>array('admin')),
);
?>

<h1>Upload</h1>

<?php if ($uploadedModels): ?>
	<div class="flash-success">
		Your upload has been saved,
		thank you very much for your time and effort ^_^<br />
		Please, maybe you want to upload the next page? ^_~
	</div>
<?php endif; ?>

<?php
$data = array(
	'model'=>$model,
	'virgin'=>$uploadedModels ? false : true,
	'chapter'=>$chapter,
	'page'=>$page,
	'chapterListData'=>$chapterListData,
);
echo $this->renderPartial('_form', $data);
?>

<?php if ($uploadedModels): ?>
	<?php
	foreach ($uploadedModels as $uploadedModel) {
		$view = 'application.views.language._view';
		$this->renderPartial($view, $uploadedModel);
	}
	?>
<?php endif; ?>
